package com.zzj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzj
 * @since 2023-05-12
 */
@TableName("picc_invitation")
public class Invitation implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 邀请码
     */
    private String code;

    /**
     * 邀请类型
3 本院医护
4 外院专家
     */
    private Integer type;

    /**
     * 有效时间 小时
     */
    private Integer duration;

    /**
     * 起始时间
     */
    private String start;

    /**
     * 结束时间
     */
    private String end;

    /**
     * 0 未使用
1 已使用
2 失效
     */
    private Integer status;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 使用时间
     */
    private String useTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUseTime() {
        return useTime;
    }

    public void setUseTime(String useTime) {
        this.useTime = useTime;
    }

    @Override
    public String toString() {
        return "Invitation{" +
        "id = " + id +
        ", code = " + code +
        ", type = " + type +
        ", duration = " + duration +
        ", start = " + start +
        ", end = " + end +
        ", status = " + status +
        ", createTime = " + createTime +
        ", useTime = " + useTime +
        "}";
    }
}
